<template>
	<div class="padding-lr-xs">
	  <a-form-model>

<!--      <a-form-model-item label="自动去重(审批流程中审批人重复出现时，只需审批一次其余自动通过)">-->
<!--        <a-switch default-checked />-->
<!--      </a-form-model-item>-->

<!--      <a-form-model-item label="审批撤销(开启后发起人可以撤销审批单) ">-->
<!--        <a-switch default-checked />-->
<!--      </a-form-model-item>-->
<!--      <a-form-model-item label="限时审批(设置审批时间限制，自动提醒,转交,同意)">-->
<!--        <a-switch default-checked />-->
<!--      </a-form-model-item>-->
      <a-form-model-item label="手写签名(开启后审批人必须手写签名方可同意审批)">
        <a-switch @change="signChange" v-model="advancedData.sign" />
      </a-form-model-item>
	  </a-form-model>
	</div>
</template>

<script>
export default {
  name: "AdvancedSetting",
  data() {
    return {
			
		}
	},
	props: {
	  modeler: {
	    type: Object,
	    required: true,
	  },
	  element: {
	    type: Object,
	    required: true,
	  },
		advancedData: {
			type: Object,
			require: true
		}
	},
	watch: {
		
	},
	methods: {
		updateProperties(properties) {
		  this.modeler.get("modeling").updateProperties(this.element, properties);
		},
		signChange(val){
			this.updateProperties({sign: val});
			this.$emit("setAdvancedData", 'sign', val)
		}
	}
}
</script>

<style>
</style>
